//package com.ax.center.config;
//
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.beans.BeansException;
//import org.springframework.beans.factory.config.BeanPostProcessor;
//import org.springframework.boot.web.context.WebServerInitializedEvent;
//import org.springframework.context.ApplicationListener;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.data.util.ReflectionUtils;
//import org.springframework.web.servlet.mvc.method.RequestMappingInfoHandlerMapping;
//import springfox.documentation.builders.ApiInfoBuilder;
//import springfox.documentation.builders.PathSelectors;
//import springfox.documentation.builders.RequestHandlerSelectors;
//import springfox.documentation.service.ApiInfo;
//import springfox.documentation.spi.DocumentationType;
//import springfox.documentation.spring.web.plugins.Docket;
//import springfox.documentation.spring.web.plugins.WebMvcRequestHandlerProvider;
//import springfox.documentation.swagger2.annotations.EnableSwagger2;
//
//import java.lang.reflect.Field;
//import java.util.List;
//import java.util.stream.Collectors;
//
///**
// * @author zy
// * @date 2023/7/3 15:36
// */
//@Configuration //配置类
//@EnableSwagger2// 开启Swagger2的自动配置
//@Slf4j
//public class SwaggerConfig  {
//    //配置Swagger的Docket的bean实例
//    //docket封装接口文档信息
//        @Bean
//        public Docket docket(){
//            return new Docket(DocumentationType.SWAGGER_2)
//                    .apiInfo(apiInfo())
//                    .select()
//                    .apis(RequestHandlerSelectors.basePackage("com.ax.center.controller"))
//                    .paths(PathSelectors.any())
//                    .build().groupName("zzy");
//        }
//
//        private ApiInfo apiInfo() {
//
//            return new ApiInfoBuilder()
//                    .title("实训")
//                    .description("权限中心项目的API文档")
//                    .version("1.0.0")
//                    .termsOfServiceUrl("https://gitee.com/solitary-wine/asia-info-permissions-centre-back.git")
//                    .build();
//        }
//
//}
